﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000181 RID: 385
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class CancelMatchScRsp : IMessage<CancelMatchScRsp>, IMessage, IEquatable<CancelMatchScRsp>, IDeepCloneable<CancelMatchScRsp>, IBufferMessage
	{
		// Token: 0x17000511 RID: 1297
		// (get) Token: 0x06001149 RID: 4425 RVA: 0x0003205C File Offset: 0x0003025C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<CancelMatchScRsp> Parser
		{
			get
			{
				return CancelMatchScRsp._parser;
			}
		}

		// Token: 0x17000512 RID: 1298
		// (get) Token: 0x0600114A RID: 4426 RVA: 0x00032063 File Offset: 0x00030263
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return CancelMatchScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000513 RID: 1299
		// (get) Token: 0x0600114B RID: 4427 RVA: 0x00032075 File Offset: 0x00030275
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return CancelMatchScRsp.Descriptor;
			}
		}

		// Token: 0x0600114C RID: 4428 RVA: 0x0003207C File Offset: 0x0003027C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CancelMatchScRsp()
		{
		}

		// Token: 0x0600114D RID: 4429 RVA: 0x00032084 File Offset: 0x00030284
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CancelMatchScRsp(CancelMatchScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600114E RID: 4430 RVA: 0x000320A9 File Offset: 0x000302A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CancelMatchScRsp Clone()
		{
			return new CancelMatchScRsp(this);
		}

		// Token: 0x17000514 RID: 1300
		// (get) Token: 0x0600114F RID: 4431 RVA: 0x000320B1 File Offset: 0x000302B1
		// (set) Token: 0x06001150 RID: 4432 RVA: 0x000320B9 File Offset: 0x000302B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06001151 RID: 4433 RVA: 0x000320C2 File Offset: 0x000302C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as CancelMatchScRsp);
		}

		// Token: 0x06001152 RID: 4434 RVA: 0x000320D0 File Offset: 0x000302D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(CancelMatchScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001153 RID: 4435 RVA: 0x00032100 File Offset: 0x00030300
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001154 RID: 4436 RVA: 0x0003213F File Offset: 0x0003033F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001155 RID: 4437 RVA: 0x00032147 File Offset: 0x00030347
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001156 RID: 4438 RVA: 0x00032150 File Offset: 0x00030350
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001157 RID: 4439 RVA: 0x00032184 File Offset: 0x00030384
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001158 RID: 4440 RVA: 0x000321C2 File Offset: 0x000303C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CancelMatchScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001159 RID: 4441 RVA: 0x000321F3 File Offset: 0x000303F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600115A RID: 4442 RVA: 0x000321FC File Offset: 0x000303FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400073D RID: 1853
		private static readonly MessageParser<CancelMatchScRsp> _parser = new MessageParser<CancelMatchScRsp>(() => new CancelMatchScRsp());

		// Token: 0x0400073E RID: 1854
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400073F RID: 1855
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04000740 RID: 1856
		private uint retcode_;
	}
}
